<template>
  <div style="width: 100%">
    <section class="select-container" style="margin-bottom: 30px">
      <section class="item">
        <section class="first">
          <span>2</span>
        </section>
        <section>
          <p class="title">填写业务信息</p>
          <p class="title-content">
            填写{{customType}}、{{productType}}、数量、金额等信息。
          </p>
        </section>
      </section>
    </section>
    <businessFormModel1 ref="businessFormModel1" :processType="processType"></businessFormModel1>
<!--    <DynamicForm></DynamicForm>-->
  </div>
</template>
<script>
import DynamicForm from './dynamicForm'
import businessFormModel1 from './models/businessFormModel1'
export default {
  components: {
    // DynamicForm,
    businessFormModel1
  },
  data () {
    return {
      processType: this.$route.query.processType,
      customType: '',
      productType: ''
    }
  },
  methods: {},
  mounted () {
    if (this.processType == 1) {
      this.customType = '客户'
      this.productType = '产品'
    } else if (this.processType == 2) {
      this.customType = '供应商'
      this.productType = '原料'
    }
  }
}
</script>
<style lang="scss" scoped>
    @import "@/assets/scss/config.scss";
.select-container {
  width: 90%;
  p{
    margin: 0;
  }
  display: flex;
  .item {
    width: 38%;
    display: flex;
    position: relative;
    .first {
      width: 40px;
      height: 40px;
      background: $--color-primary-liyu;
      border-radius: 50%;
      margin-right: 10px;
      text-align: center;
      span {
        width: 7px;
        font-size: 22px;
        line-height: 40px;
        font-weight: 400;
        color: #ffffff;
      }
    }
    .title {
      font-size: 18px;
      line-height: 40px;
      font-weight: 400;
      color: $--color-primary-liyu;
    }
    .title-content{
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #999999;
    }
  }
}
</style>
